package com.xja.seckill.order;

import com.xja.seckill.order.commons.JsonBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "PRODUCTS",fallback = ProductHystrix.class)
public interface ProductCilentApi {
    @GetMapping("/product/getProductById")
    JsonBean getProductById(@RequestParam("id") Integer id);

    @GetMapping("/product/reducerStock")
    JsonBean reducerStock(@RequestParam("productId") Integer productId);

}
